package com.example.administrator.wallet.model.bean;

import java.util.List;

/**
 * Created by Administrator on 2018/8/29 0029.
 */

public class WebSocketTransactionsBean {

    /**
     * result : [{"amount":"0.1","id":168,"type":"buy","price":"10000","time":1.535534834893427E9},{"amount":"0.001","id":167,"type":"sell","price":"1","time":1.535524800352715E9},{"amount":"0.2","id":166,"type":"sell","price":"10","time":1.535524800352548E9},{"amount":"0.1","id":165,"type":"sell","price":"10","time":1.535524800352365E9},{"amount":"1","id":164,"type":"sell","price":"100","time":1.535524800352153E9},{"amount":"0.1","id":163,"type":"sell","price":"100.1","time":1.535524800351992E9},{"amount":"0.1","id":162,"type":"sell","price":"100.4","time":1.535524800351804E9},{"amount":"0.029","id":161,"type":"sell","price":"8000","time":1.535524800351504E9},{"amount":"0.971","id":150,"type":"sell","price":"8000","time":1.53552474906831E9},{"amount":"0.029","id":149,"type":"sell","price":"8000","time":1.535524749068048E9}]
     * error : null
     * id : 5
     */

    private Object error;
    private int id;
    private List<ResultBean> result;

    public Object getError() {
        return error;
    }

    public void setError(Object error) {
        this.error = error;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public List<ResultBean> getResult() {
        return result;
    }

    public void setResult(List<ResultBean> result) {
        this.result = result;
    }

    public static class ResultBean {
        /**
         * amount : 0.1
         * id : 168
         * type : buy
         * price : 10000
         * time : 1.535534834893427E9
         */

        private String amount;
        private int id;
        private String type;
        private String price;
        private double time;

        public String getAmount() {
            return amount;
        }

        public void setAmount(String amount) {
            this.amount = amount;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getPrice() {
            return price;
        }

        public void setPrice(String price) {
            this.price = price;
        }

        public double getTime() {
            return time;
        }

        public void setTime(double time) {
            this.time = time;
        }
    }
}
